<!DOCTYPE html>
<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/mytags.jsp"%>
<title>申请提交信息</title>
<t:base type="jquery,my97,easyui,dataTables"></t:base>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- extend -->
<script type="text/javascript">
	var _param_id = parent._param_id;
	
	var gotoBack = function(){
		top._do_goto_right('jsp/loan/applyLoanList_.jsp');
	};

	$(function(){
		if(typeof(_param_id)!='undefined' && _param_id.length > 0){
			_set_default_lable_text('sys/LoanExt/checkSubmit?pks=' + _param_id,true);	
			$.ajax({
		       	url:'sys/LoanExt/accessoryGroup',
		    	data:{'queryProxy[loanId]':_param_id,'queryProxy[ownerType]':'SQ'},
		    	type:'post',
		    	dataType:'json',
		    	async:false,
		    	success:function(result){
		    	        if(typeof(result)!='undefined' && result.state == 200){
		    	          var accessoryClassApplyCodes = top.SYS_BASE_DATA['Accessory_Class_Apply_Code'],data=result.rows,li=getgetAccessoryLis2(accessoryClassApplyCodes,data);
		    	          if(_is_not_empty(li)){
		    	        	 $('#accessoryInfo').after($(li));
		    	          }
		    	        }
		    		},
		    		complete:function(){
		    		}
		        });
		}
	});


	var getgetAccessoryLis2 = function(accessoryClassApplyCodes,data){
	    var li='';
		$.each(accessoryClassApplyCodes,function(key,value){
			  $.each(data,function(index,obj){
				  var label = obj['LABEL'],num=obj['NUM'];
				  if(_is_not_empty(label) && label  == key){
					  li = li+'<li><label>&nbsp;</label><label2><j>'+value+':</j><b><span>'+num+'</span></b>个</label2></li>';
				   }
			     });
	   });
		return li;
	}

	var getgetAccessoryLis1 = function(accessoryClassApplyCodes,data){
		var li = '';
		$.each(accessoryClassApplyCodes,function(key,value){
		       var num = getAccessoryNum(key,data); ;
		       li = li+'<li><label>&nbsp;</label><label2><j>'+value+':</j><b><span>'+num+'</span></b>个</label2></li>';
	   });
		return li;
	}
	var getAccessoryNum = function(key,data){
		 if(_is_empty(data)){
			 return 0;
		 }
		 for(var key in data){
			 var obj = data[key],label = obj['LABEL'];
			 if(_is_not_empty(label) && label  == key){
				   return obj['NUM'];
			   }
		 }
	};
	
</script>
</head>
<body>
	<div class="formbody">
    	<div class="formtitle"><span>申请信息详情</span></div>
    	<div class="toolsli">
			<form id="_loan_detail" name="_loan_detail">
			    <ul class="forminfo">
			    	<li>
			    		<label>主贷人信息&nbsp;</label>
			    		<label2>姓名：<b><span name="loanBorrower"></span></b></label2>
			    	</li>
			    	<li>
			    		<label>&nbsp;</label>
			    		<label2>证件号码：<b><span name="clientCardId"></span></b></label2>
			    	</li>
			   		<li id="accessoryInfo">
			   			<label>附件信息&nbsp;</label>
			   			<label2>已上传附件:<b><span name="accessorySum"></span></b>个</label2>
			   		</li>
			   		
			   		<li>
			    		<label>符合性检查&nbsp;</label>
			    		<label2>与申请人同名的记录: <b><span name="sameNameNum"></span> </b>条；&nbsp;</label2>
			    	</li>
			    	<li>
			    		<label>&nbsp;</label>
			    		<label2>与申请人同证件号码的记录: <b><span name="sameCardidNum"></span></b> 条；&nbsp;</label2>
			    	</li>
			    	<li>
			    		<label>&nbsp;</label>
			    		<label2>与申请人同电话号码的记录:<b><span name="sameTelNum"></span> </b>条；</label2>
			    	</li>
			    	
			   		<li>
			   			<label>贷款申请时间</label>
			   			<label2><b><span name="loanApplyDate@[yyyy-MM-dd]"></span></b></label2>
			   		</li>
			   		<li>
			    		<label>录入信息&nbsp;</label>
			    		<label2>录入时间: <b><span name="addTime"></span> </b>&nbsp;</label2>
			    	</li>
			    	<li>
			    		<label>&nbsp;</label>
			    		<label2>录单人: <b><span name="addUserName"></span></b></label2>
			    	</li>			   		
			       	<li>
			       		<label>提交时间</label>
			       		<label2><b><span name="loanSubmitTime"></span></b></label2>
			       	</li>
			      	<li><label>&nbsp;</label><input name="" type="button"  onclick="history.go(-1);" class="scbtn" value="返回"/></li>
			    </ul>
			</form>  
	    </div>
	</div>
</body>
</html>
